1 W = PEEK(33): IF W > LEN(Z$) THEN RETURN : REM OUTPUT FORMATTER
2 IF MID$ (Z$,W,1) < >" " THEN W = W -1: GOTO 2
3 PRINT LEFT$(Z$,W -1):W = W +1: IF SP = 1 THEN PRINT
4 IF MID$ (Z$,W,1) = " " THEN W = W +1: GOTO 4
5 Z$ = MID$ (Z$,W): GOTO 1
7 GOSUB 1: PRINT Z$: PRINT : RETURN
8 PRINT : INPUT "PRESS RETURN TO CONTINUE: ";R$: HOME : RETURN
100 TEXT : HOME : PRINT "HELPER -- 02/17/80 -- A.C.E.S.": PRINT
110 Z$ = "HELPER IS A SET OF KEYBOARD MACROS AND UTILITIES FOR APPLESOFT, INTEGER BASIC, AND THE APPLE MONITOR. IT IS INITIALIZED BY 'BRUN HELPER' OR 'CALL-25946'. IT IS ACTIVATED WITH THE ESCAPE KEY.": GOSUB 7
120 Z$ = "HELPER RESIDES IN THE THIRD DOS BUFFER, FROM $9AA6 TO $9CD1, WHERE IT IS SAFE FROM ALL BUT MULTIPLE OPEN FILES, AND WILL SUPPORT LOWER CASE HARDWARE AFTER ENTERING '9BF0:18 18' FROM THE MONITOR.": GOSUB 7
130 Z$ = "HELPER PROVIDES FOUR MAIN TYPES OF FUNCTIONS: CURSOR MOVES, A STOP LIST PROGRAM, KEYBOARD MACROS, AND MONITOR SUBROUTINES.": GOSUB 7: GOSUB 8
230 Z$ = "ANYTHING THAT IS PRINTING ON THE SCREEN CAN BE STOPPED BY PRESSING THE ESCAPE KEY ON THE KEYBOARD. TO START PRINTING AGAIN, MERELY PRESS ANY KEY.": GOSUB 7: GOSUB 8
300 PRINT "KEYBOARD MACROS:": PRINT : PRINT : PRINT "C - CATALOG AND RETURN": PRINT "D - DELETE AND 16 ->": PRINT "E - EXEC AND 16 ->": PRINT "G - LOAD (GET) AND 16 ->"
310 PRINT "L - LOCK AND 16 ->": PRINT "R - RUN AND 16 ->": PRINT "U - UNLOCK AND 16 ->": PRINT "S - SAVE": PRINT "B - B (FOR USE WITH LOAD/RUN/SAVE)"
315 PRINT "W - WHERE AND HOW LONG FOR B-FILES"
320 PRINT : PRINT "H - HOME AND EXIT": PRINT "T - TEXT AND EXIT": PRINT "P - TEXT, HOME, POKE 33,33 AND EXIT"
330 PRINT :Z$ = "ALL NON-ALPHABETIC CHARACTERS ARE PASSED THRU AND HELPER IS EXITED.": GOSUB 1: PRINT Z$: GOSUB 8
350 PRINT "USER DEFINED KEYBOARD MACROS:": PRINT : PRINT
360 Z$ = "THE LETTERS F, O, AND V, HAVE BEEN LEFT UNDEFINED IN HELPER TO ALLOW FOR CUSTOMIZED KEYBOARD MACROS. THE THREE 8-BYTE AREAS FOR F, O, AND V ARE AT $9C30, $9C38, AND $9C40, RESPECTIVELY. ": GOSUB 1
370 Z$ = Z$ +"ALL CHARACTERS MUST HAVE THEIR SIGN BITS ON TO MEET MONITOR CONVENTIONS. IF A CHARACTER IS REPLACED WITH $00, THE REST OF THE DEFINITION WILL BE REPLACED BY 16 RIGHT ARROWS AT EXECUTION TIME. ": GOSUB 7
380 Z$ = "PLEASE EXAMINE THE OTHER MACROS AND TRY THE DEFAULTS FOR THESE COMMANDS BEFORE MODIFYING HELPER.": GOSUB 7: GOSUB 8
400 PRINT "MONITOR SUBROUTINES:": PRINT : PRINT
410 Z$ = "HELPER PROVIDES EASY ACCESS TO THE USER SUBROUTINE INTERFACE OF THE MONITOR. THE Y COMMAND INDICATES THAT THE NEXT CHARACTER, 0-3, WILL BE THE NUMBER OF THE SUBROUTINE TO BE HOOKED INTO THE MONITOR. ": GOSUB 1
420 Z$ = Z$ +"THE ADDRESSES OF THE FOUR SUBROUTINES, 0-3 RESPECTIVELY, MUST BE PLACED AT $9C18 THRU $9C1F. TWO SUBROUTINES ARE PROVIDED WITH HELPER:": GOSUB 7
430 PRINT "0 - MEMORY WORD SEARCH -- WILL PRINT": PRINT " ADDRESSES OF ALL OCCURRENCES OF": PRINT " THE BYTE OR WORD ENTERED.": PRINT " TARGET<START.END CTRL-Y": PRINT
600 HOME :Z$ = "HELPER2 IS A PACKAGE OF EXTENDED MONITOR SUBROUTINES DESIGNED FOR USE WITH HELPER. THEY RESIDE NEAR THE TOP OF THE APPLE STACK, FROM $010A TO $017E.": GOSUB 1
610 Z$ = Z$ +" MERELY ENTER 'BRUN HELPER2' TO HOOK THE NEW SUBROUTINES INTO THE HELPER PROGRAM. THE USE OF HELPER2 IS OPTIONAL.": GOSUB 7